package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_cwa_shf database table.
 * 
 */
@Entity
@Table(name="per_cwa_shf")
@NamedQuery(name="PerCwaShf.findAll", query="SELECT p FROM PerCwaShf p")
public class PerCwaShf implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int shfid;

	private String shfname;

	private String shfrem;

	private String shftime;

	//bi-directional many-to-one association to PerCwaCwas
	@OneToMany(mappedBy="perCwaShf")
	private List<PerCwaCwas> perCwaCwas;

	public PerCwaShf() {
	}

	public int getShfid() {
		return this.shfid;
	}

	public void setShfid(int shfid) {
		this.shfid = shfid;
	}

	public String getShfname() {
		return this.shfname;
	}

	public void setShfname(String shfname) {
		this.shfname = shfname;
	}

	public String getShfrem() {
		return this.shfrem;
	}

	public void setShfrem(String shfrem) {
		this.shfrem = shfrem;
	}

	public String getShftime() {
		return this.shftime;
	}

	public void setShftime(String shftime) {
		this.shftime = shftime;
	}

	public List<PerCwaCwas> getPerCwaCwas() {
		return this.perCwaCwas;
	}

	public void setPerCwaCwas(List<PerCwaCwas> perCwaCwas) {
		this.perCwaCwas = perCwaCwas;
	}

	public PerCwaCwas addPerCwaCwa(PerCwaCwas perCwaCwa) {
		getPerCwaCwas().add(perCwaCwa);
		perCwaCwa.setPerCwaShf(this);

		return perCwaCwa;
	}

	public PerCwaCwas removePerCwaCwa(PerCwaCwas perCwaCwa) {
		getPerCwaCwas().remove(perCwaCwa);
		perCwaCwa.setPerCwaShf(null);

		return perCwaCwa;
	}

}